package com.xjgzinfo.usdp.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 白名单配置
 *
 * @author admin
 * @date 2020/6/17
 */

@Component
@ConfigurationProperties(prefix = "security.ignore")
public class IgnoreUrlsConfig {
    private List<String> urls = new ArrayList<>();

    public List<String> getUrls() {
        return urls.stream().distinct().collect(Collectors.toList());
    }

    public void setUrls(List<String> urls) {
        this.urls = urls;
    }
}
